const express = require('express');
const router = express.Router();
const bookmarkController = require('../controllers/bookmarkController');
const authMiddleware = require('../middleware/auth');

router.post('/:post_id', authMiddleware, bookmarkController.bookmarkPost);

router.delete('/:post_id', authMiddleware, bookmarkController.unbookmarkPost);

router.get('/', authMiddleware, bookmarkController.getBookmarks);

module.exports = router;